qemu: add 0xe0 prefix to r-ctrl and r-alt keycodes
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 14 May 2008 08:13:48 +0000 (09:13 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 14 May 2008 08:13:48 +0000 (09:13 +0100)
Patch puts 0xe0 prefix before putting right alt or right cntrl
keycodes. Also adds keysm definition for ISO_Left_Tab.

Signed-off-by: Pat Campbell <plc@novell.com>
tools/ioemu/vnc.c
tools/ioemu/vnc_keysym.h

index 7ac3c4c2f517f747e6323ef492960dc1562d3844..0735d714f63bdff48fc918cf3debed4020053566 100644 (file)
@@ -1333,6 +1333,8 @@ static void do_key_event(VncState *vs, int down, uint32_t sym)
     case 0x9d:                          /* Right CTRL */
     case 0x38:                          /* Left ALT */
     case 0xb8:                          /* Right ALT */
+        if (keycode & 0x80)
+            kbd_put_keycode(0xe0);
         if (down) {
             vs->modifiers_state[keycode] = 1;
             kbd_put_keycode(keycode & 0x7f);
index af99ce0e4e5e196cc3c1d2f32f9b8dea7b26184d..aa0fd9b5f782b2634538a216970242485b15e7b7 100644 (file)
@@ -345,6 +345,7 @@ static name2keysym_t name2keysym[]={
 {"Num_Lock", 0xff7f},    /* XK_Num_Lock */
 {"Pause", 0xff13},       /* XK_Pause */
 {"Escape", 0xff1b},      /* XK_Escape */
+{"ISO_Left_Tab", 0xfe20},/* XK_ISO_Left_Tab */
 
     /* localized keys */
 {"BackApostrophe", 0xff21},